package com.androidgame.fx;

import android.graphics.Bitmap;
import android.graphics.Path;
import android.graphics.Rect;
import android.graphics.Typeface;

public interface Graphics {
	
    public Bitmap newBitmap(String fileName);
    public Bitmap newBitmap(int resourceId);
    public Bitmap newBitmap(String fileName, int width, int height);
    public Bitmap newBitmap(int resourceId, int width, int height);

    public void clear(int color);

    public void drawPixel(int x, int y, int color);

    public void drawLine(int x, int y, int x2, int y2, int color);

    public void drawRect(int x, int y, int width, int height, int color);
    
    public void drawRect(Rect rect, int color);
    
    public void drawCircle(int x, int y, int radius, int color);

    public void drawPath(Path path, int color);
    
    public void drawOval(int x, int y, int width, int height, int color);

    public void drawText(String text, int x, int y, int color, int size, Typeface font);
    
    public Rect getTextBound(String text, int start, int end, Typeface font, int size);
    
    public void drawBitmap(Bitmap bitmap, int x, int y);
    
    public void drawBitmap(Bitmap bitmap, int x, int y, int srcX, int srcY, int srcWidth, int srcHeight);

    public void drawBitmap(Bitmap bitmap, Rect r1, Rect r2);
    
    public int getWidth();

    public int getHeight();
    
    public void setFrameBuffer(Bitmap frameBuffer);
    
}












